import http from '@/http/http'
import { RecordListParam, RecordParam } from './RecordModel'
enum Api {
    getRecordList = '/api/v1/record/getList',
    addAndEditAndDel = '/api/v1/record/record'
}

// 操作记录列表
export const getRecordListApi = async (param: RecordListParam) => {
    return await http.get(Api.getRecordList, param)
}

// 删除操作记录
export const delRecordApi = async (param: RecordParam) => {
    return await http.delete(Api.addAndEditAndDel, param)
}
